package com.wyy.service;

import com.wyy.pojo.AppreciatesOrder;
import com.wyy.pojo.UserPojo;

import java.util.Map;

/**
 * @program: gytcb
 * @author: 吴磊
 * @create: 2021-06-30 19:20
 */
public interface OrderService {

    /**
     * 删除超时并未支付的订单
     */
    void deleteTimeOutOrder();

    /**
     * 获取所有的订单
     *
     * @param userPojo
     * @return
     */
    Map<String, Object> getAllOrder(UserPojo userPojo);


    /**
     * 根据ID删除订单
     *
     * @param appreciatesOrder
     * @return
     */
    void deleteOrderById(AppreciatesOrder appreciatesOrder);

}
